//
//  ITTemp2Ctrl.m
//  coderSinaWeiBo24
//
//  Created by 张雪雪 on 16/3/25.
//  Copyright © 2016年 www.xue.com. All rights reserved.
//

#import "ITTemp2Ctrl.h"
#import "ITTemp3Ctrl.h"
@interface ITTemp2Ctrl ()

@end

@implementation ITTemp2Ctrl

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"第二个控制器";
    self.view.backgroundColor = [UIColor whiteColor];
    
//    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImageName:@"navigationbar_back_withtext" title:@"首页" target:self action:@selector(back)];
}
//- (void)back{
//    [self.navigationController popToRootViewControllerAnimated:YES];
//}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

    ITTemp3Ctrl *ctrl = [ITTemp3Ctrl new];
    [self.navigationController pushViewController:ctrl animated:YES];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
